package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.api.domain.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CategoryService extends IService<Category> {
    List<Category> listByPid(Long pid);

    List<Long> selectCategoryIdsByC3Id(Long category3Id);

    void exportCates(HttpServletResponse response);

    int importCates(MultipartFile file);

    boolean categoryExists(Category data);

    List<Category> listCateTree();

}
